//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.spring.schedule_system.dengxiaojiao.util;

public class BizException extends RuntimeException {
    private static final long serialVersionUID = 1L;
    private String errorCode;

    private BizException() {
    }

    public String getErrorCode() {
        return this.errorCode;
    }

    private BizException(String errorCode, String msg) {
        this(errorCode, msg, (Throwable)null);
    }

    private BizException(String errorCode, String msg, Throwable throwable) {
        super(msg, throwable);
        this.errorCode = errorCode;
    }

    public static BizException newBizException(String errorCode, String msg) {
        return newBizException(errorCode, msg, (Throwable)null);
    }

    public static BizException newBizException(String errorCode, String msg, Throwable throwable) {
        return new BizException(errorCode, msg, throwable);
    }

    public String toString() {
        return "BizException{errorCode='" + this.errorCode + "', msg='" + this.getMessage() + "'} ";
    }
}
